"use strict";

/**
 * A set of functions called "actions" for `hello`
 */

module.exports = {
  async index(ctx, next) {
    try {
      // ctx.body = "OK";
      ctx.body = await strapi.service("api::hello.hello").hello();
    } catch (err) {
      ctx.body = err;
    }
  },
  async say(ctx, next) {
    try {
      // ctx.body = "OK";
      ctx.body = await strapi.service("api::hello.hello").sayHello();
    } catch (err) {
      ctx.body = err;
    }
  },
};
